﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000C87 RID: 3207
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class NpcStatus : IMessage<NpcStatus>, IMessage, IEquatable<NpcStatus>, IDeepCloneable<NpcStatus>, IBufferMessage
	{
		// Token: 0x1700286A RID: 10346
		// (get) Token: 0x06008F6B RID: 36715 RVA: 0x0017D2E4 File Offset: 0x0017B4E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<NpcStatus> Parser
		{
			get
			{
				return NpcStatus._parser;
			}
		}

		// Token: 0x1700286B RID: 10347
		// (get) Token: 0x06008F6C RID: 36716 RVA: 0x0017D2EB File Offset: 0x0017B4EB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return NpcStatusReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700286C RID: 10348
		// (get) Token: 0x06008F6D RID: 36717 RVA: 0x0017D2FD File Offset: 0x0017B4FD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return NpcStatus.Descriptor;
			}
		}

		// Token: 0x06008F6E RID: 36718 RVA: 0x0017D304 File Offset: 0x0017B504
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public NpcStatus()
		{
		}

		// Token: 0x06008F6F RID: 36719 RVA: 0x0017D30C File Offset: 0x0017B50C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public NpcStatus(NpcStatus other) : this()
		{
			this.npcId_ = other.npcId_;
			this.isFinish_ = other.isFinish_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06008F70 RID: 36720 RVA: 0x0017D33D File Offset: 0x0017B53D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public NpcStatus Clone()
		{
			return new NpcStatus(this);
		}

		// Token: 0x1700286D RID: 10349
		// (get) Token: 0x06008F71 RID: 36721 RVA: 0x0017D345 File Offset: 0x0017B545
		// (set) Token: 0x06008F72 RID: 36722 RVA: 0x0017D34D File Offset: 0x0017B54D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint NpcId
		{
			get
			{
				return this.npcId_;
			}
			set
			{
				this.npcId_ = value;
			}
		}

		// Token: 0x1700286E RID: 10350
		// (get) Token: 0x06008F73 RID: 36723 RVA: 0x0017D356 File Offset: 0x0017B556
		// (set) Token: 0x06008F74 RID: 36724 RVA: 0x0017D35E File Offset: 0x0017B55E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsFinish
		{
			get
			{
				return this.isFinish_;
			}
			set
			{
				this.isFinish_ = value;
			}
		}

		// Token: 0x06008F75 RID: 36725 RVA: 0x0017D367 File Offset: 0x0017B567
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as NpcStatus);
		}

		// Token: 0x06008F76 RID: 36726 RVA: 0x0017D375 File Offset: 0x0017B575
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(NpcStatus other)
		{
			return other != null && (other == this || (this.NpcId == other.NpcId && this.IsFinish == other.IsFinish && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06008F77 RID: 36727 RVA: 0x0017D3B4 File Offset: 0x0017B5B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.NpcId != 0U)
			{
				num ^= this.NpcId.GetHashCode();
			}
			if (this.IsFinish)
			{
				num ^= this.IsFinish.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06008F78 RID: 36728 RVA: 0x0017D40C File Offset: 0x0017B60C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06008F79 RID: 36729 RVA: 0x0017D414 File Offset: 0x0017B614
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06008F7A RID: 36730 RVA: 0x0017D420 File Offset: 0x0017B620
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.NpcId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.NpcId);
			}
			if (this.IsFinish)
			{
				output.WriteRawTag(72);
				output.WriteBool(this.IsFinish);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06008F7B RID: 36731 RVA: 0x0017D47C File Offset: 0x0017B67C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.NpcId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.NpcId);
			}
			if (this.IsFinish)
			{
				num += 2;
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06008F7C RID: 36732 RVA: 0x0017D4C8 File Offset: 0x0017B6C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(NpcStatus other)
		{
			if (other == null)
			{
				return;
			}
			if (other.NpcId != 0U)
			{
				this.NpcId = other.NpcId;
			}
			if (other.IsFinish)
			{
				this.IsFinish = other.IsFinish;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06008F7D RID: 36733 RVA: 0x0017D518 File Offset: 0x0017B718
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06008F7E RID: 36734 RVA: 0x0017D524 File Offset: 0x0017B724
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 72U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.IsFinish = input.ReadBool();
					}
				}
				else
				{
					this.NpcId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040036BC RID: 14012
		private static readonly MessageParser<NpcStatus> _parser = new MessageParser<NpcStatus>(() => new NpcStatus());

		// Token: 0x040036BD RID: 14013
		private UnknownFieldSet _unknownFields;

		// Token: 0x040036BE RID: 14014
		public const int NpcIdFieldNumber = 4;

		// Token: 0x040036BF RID: 14015
		private uint npcId_;

		// Token: 0x040036C0 RID: 14016
		public const int IsFinishFieldNumber = 9;

		// Token: 0x040036C1 RID: 14017
		private bool isFinish_;
	}
}
